import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

let userInfo = uni.getStorageSync('userInfo');
console.log(userInfo)
	if (!userInfo.accessToken) {
		uni.showModal({
			title: '登录提示',
			content: '您尚未登录，是否立即登录？',
			confirmText: '登录',
			showCancel: true,
			success: (e) => {
				if (e.confirm) {
					uni.navigateTo({
						url: '/pages/login/login'
					})
				}
			}
		})
	}

const app = new Vue({
	...App
})
app.$mount()
